package com.yuanyefu.helloworld;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2017/9/16 0016.
 */
public class InstanceFactoryBean {
    private String format = "yy-MM-dd HH:mm:ss";
    public void setFormat(String format){
        this.format = format;
    }
    public String createTime(){
        return new SimpleDateFormat(format).format(new Date());
    }
}
